<?php
/**
 * imagecollectivepro.php
 * Created on 2015-03-30 12:24:21
 * Create by yuebin
 */
namespace haibao\cms\model\data\imagecollective;

class ImageCollectivePro extends \haibao\cms\model\data\Base {

	const IMAGE_TYPE_ZERO = 0;
	const IMAGE_TYPE_ONE = 1;
	const IMAGE_TYPE_TWO = 2;
	const IMAGE_TYPE_THREE = 3;
	
	/**
	 *图片样式4：400X400
	 */
	const IMAGE_TYPE_FOUR = 4;
	
	/**
	 *图片样式5：430X324
	 */
	const IMAGE_TYPE_FIVE = 5;
	
	/**
	 *图片样式6：315X420
	 */
	const IMAGE_TYPE_SIX = 6;
	
	/**
	 *图片样式4：320X570
	 */
	const IMAGE_TYPE_SEVEN = 7;
	
	/**
	 * 各个尺寸
	 */
	const IMAGE_TYPE_FOUR_WIDTH = '400';
	const IMAGE_TYPE_FOUR_HEIGHT = '400';
	const IMAGE_TYPE_SIX_WIDTH = '315';
	const IMAGE_TYPE_SIX_HEIGHT = '420';
	const IMAGE_TYPE_FIVE_WIDTH = '430';
	const IMAGE_TYPE_FIVE_HEIGHT = '324';
	const IMAGE_TYPE_SEVEN_WIDTH = '320';
	const IMAGE_TYPE_SEVEN_HEIGHT = '570';


	/**
	 * 图集ID
	 */
	public $ImageCollectiveId;
	/**
	 * 图片ID
	 */
	public $ImageId;
	/**
	 * 描述
	 */
	public $Description;
	/**
	 * 图品尺寸1（1：1），2（3：4），3（4：3）
	 */
	public $ImageType;
	/**
	 * 创建人ID
	 */
	public $CreateBy;
	/**
	 * 创建时间
	 */
	public $CreateTime;
	/**
	 * ImageLibrary 的集合
	 */
	public $FileName;
	
	/**
	 *图片static路径 
	 */
	public $ImageUrl ;
	
	public $Url;
	public function __construct() {
		parent::__construct();
		$this->intField ( 'ImageCollectiveId', 'ImageCollectiveId', true );
		$this->intField ( 'ImageId', 'ImageId', true );
		$this->stringField ( 'Description', 'Description' );
		$this->intField ( 'ImageType', 'ImageType', true );
		$this->intField ( 'CreateBy', 'Description', true );
		$this->dateField ( 'CreateTime', 'CreateTime', true );
		
		
		$this->setTableName ( 'ImageCollectivePro' );
	}

}